#include "Entity.h"
#include <cassert>

using namespace std;

Entity::Entity(){}
Entity::~Entity(){
    destroy_bitmap(mGraphic);
}

void Entity::setGraphic(BITMAP* pGraphic) {
    assert(pGraphic != NULL);
    mGraphic = pGraphic;   
}

BITMAP* Entity::getGraphic() const {
    assert(mGraphic != NULL);
    return mGraphic;
}

bool Entity::isActive() const {
    return mIsActive;
}

void Entity::setActive(bool pActive) {
    mIsActive = pActive;
}

Rect* Entity::getPos() const {
    return mPos; 
}

void Entity::setPos(Rect* pPos) {
    mPos = pPos;
}

BITMAP* Entity::draw(){
    return mGraphic;
}
